/**
 * 业务数据配置接口定义
 * @author luguoxiang
 * @date 2022/7/5
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
import type { Arrayable } from './Types';

/**
 * 输入组件
 */
export type InputComponentType =
  | 't-input'
  | 't-input-number'
  | 't-range-input'
  | 't-textarea'
  | 't-tagInput'
  | 't-auto-complete'
  | 't-select'
  | 't-tree-select'
  | 't-cascader'
  | 't-radio-group'
  | 't-checkbox-group'
  | 't-color-picker'
  | 't-date-picker'
  | 't-timePicker'
  | 't-slider'
  | 't-switch'
  | 't-transfer';

/**
 * 组件属性
 */
export interface IComponentProps {
  /**
   * 内联样式
   */
  style?: string | object;
  /**
   * 样式类名
   */
  class?: Arrayable<string> | object;

  /**
   * 其他属性
   */
  [p: string]: any;
}

/**
 * 输入组件属性
 */
export interface IInputComponentProps extends IComponentProps {
  /**
   * 提示
   */
  placeholder?: string;
}
